import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import ParentDom from '@/components/demo-iframe/ParentDom'
import ChildDom from '@/components/demo-iframe/ChildDom'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/piframe01',
      name: 'piframe01',
      component: ParentDom
    },
    {
      path: '/childdom01',
      name: 'childdom01',
      component: ChildDom
    }
  ]
})
